package com.study.springsecurity;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@Slf4j
@EnableGlobalMethodSecurity(prePostEnabled = true,securedEnabled = true)
@SpringBootApplication
@MapperScan("com.study.springsecurity.mapper")
public class SpringSecurity01Application {
    // https://blog.csdn.net/Johnson_7/article/details/126936703
    // https://blog.csdn.net/weixin_43888891/article/details/124111885
    // https://blog.csdn.net/u012373815/article/details/77408306
    // https://blog.csdn.net/qq_25272679/article/details/108326762
    // https://blog.csdn.net/weixin_40379712/article/details/129927712
    // https://blog.csdn.net/weixin_55801899/article/details/136223513
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringSecurity01Application.class, args);
        log.info("登录访问：http://127.0.0.1:8080/study/login.html");
    }
}